package com.yadang.infra.service;

import com.yadang.infra.bean.dto.CmmDictDto;
import com.yadang.infra.mapper.CmmDictMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CmmDictService {

    @Autowired
    private CmmDictMapper cmmDictMapper;

    public List<CmmDictDto> selectCmmDetail(String cmmDictType, String key, String value) {

        List<CmmDictDto> cmmDictDtoList = cmmDictMapper.selectAll(cmmDictType, key, value);

        return cmmDictDtoList;

    }

}
